package com.group3.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group3.entity.LiveMessage;
import com.group3.entity.LiveRoom;

import java.util.List;

public interface LiveRoomService {
    LiveRoom createLiveRoom(LiveRoom liveRoom);

    LiveRoom updateLiveRoom(LiveRoom liveRoom);

    void deleteLiveRoom(Long id);

    LiveRoom getLiveRoomById(Long id);

    Page<LiveRoom> listLiveRooms(int page, int size);

    List<LiveRoom> getRecommendedRooms(Long userId, int limit);

    void startLive(Long liveId);

    void pauseLive(Long liveId);

    void endLive(Long liveId);

    void addProductToLive(Long liveId, Long productId);

    void removeProductFromLive(Long liveId, Long productId);

    List<LiveMessage> getLiveMessages(Long liveId, int limit);

    void sendMessage(LiveMessage message);
}
